#ifndef BOWLING_H_
#define BOWLING_H_

#ifndef TRUE
#define TRUE 1
#endif

#ifndef FALSE
#define FALSE 0
#endif

#define FRAMES_NUM  10
#define MAX_ROLLS (2*(FRAMES_NUM)+3)

class Bowling{
public:
	Bowling();
	~Bowling();
	void roll(int pins);
	int score;
	int isGameOver;

private:
	int currentRoll;
	int rolls[MAX_ROLLS];
	int bounsCount[FRAMES_NUM];
	int isInBonusRoll;

	void checkSpare();
	void checkStrike();
	void moveToNextRoll();
	void addBonus();
	void addScore();
};




#endif /* BOWLING_H_ */
